﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Paperless_Library
{
    [DataContract]
    public class User
    {
        #region Atributos
        private string _UserName;
        private string _LastName1;
        private string _LastName2;
        private string _Department;        
        #endregion

        #region Propiedades
        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string LastName1
        {
            get { return _LastName1; }
            set { _LastName1 = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string LastName2
        {
            get { return _LastName2; }
            set { _LastName2 = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Department
        {
            get { return _Department; }
            set { _Department = value; }
        }
        #endregion

        #region Constructores
        /// <summary>
        /// Constructor vacío de la clase
        /// </summary>
        public User()
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="lastName1"></param>
        /// <param name="lastName2"></param>
        /// <param name="department"></param>
        public User(string userName, string lastName1, string lastName2, string department)
        {
            _UserName = userName;
            _LastName1 = lastName1;
            _LastName2 = lastName2;
            _Department = department;
        }
        #endregion

    }
}
